package com.ruoyi.purchase.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检验方案对象 inspection_scheme
 * 
 * @author ruoyi
 * @date 2025-10-31
 */
public class InspectionScheme extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 方案ID */
    private Long id;

    /** 检验方案编号 */
    @Excel(name = "检验方案编号")
    private String schemeId;

    /** 检验方案名称 */
    @Excel(name = "检验方案名称")
    private String schemeName;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private String itemId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdPerson;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 检验项目信息 */
    private List<InspectionItem> inspectionItemList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSchemeId(String schemeId) 
    {
        this.schemeId = schemeId;
    }

    public String getSchemeId() 
    {
        return schemeId;
    }

    public void setSchemeName(String schemeName) 
    {
        this.schemeName = schemeName;
    }

    public String getSchemeName() 
    {
        return schemeName;
    }

    public void setItemId(String itemId) 
    {
        this.itemId = itemId;
    }

    public String getItemId() 
    {
        return itemId;
    }

    public void setCreatedPerson(String createdPerson) 
    {
        this.createdPerson = createdPerson;
    }

    public String getCreatedPerson() 
    {
        return createdPerson;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public List<InspectionItem> getInspectionItemList()
    {
        return inspectionItemList;
    }

    public void setInspectionItemList(List<InspectionItem> inspectionItemList)
    {
        this.inspectionItemList = inspectionItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schemeId", getSchemeId())
            .append("schemeName", getSchemeName())
            .append("itemId", getItemId())
            .append("createdPerson", getCreatedPerson())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("inspectionItemList", getInspectionItemList())
            .toString();
    }
}
